<script setup>
import { ref } from 'vue'
import BaseVisible from '../../components/transitions/BaseVisible.vue'

const isShow = ref(true)
</script>

<template>
    <div>
        <el-button type="primary" @click="isShow =!isShow">切换</el-button>

        <BaseVisible>
            <div v-if="isShow">可复用的过渡组件</div>
        </BaseVisible>
    </div>
</template>